Strong Number in Python using For Loop